mvn -f pom.xml clean package install -Dmaven.test.skip=true

cd web-client/cms-web
version=$(date +%Y%m%d%H%M)
#version="v1"
pwd
docker build -f Dockerfile -t registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-cms:debug_$version .
docker push registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-cms:debug_$version
#kubectl set image deployment/sright-bcard-web-cms sright-bcard-web-cms=registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-cms:debug_$version
pwd
cd ../enterprise-web
pwd
docker build -f Dockerfile -t registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-enterprise:debug_$version .
docker push registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-enterprise:debug_$version
#kubectl set image deployment/sright-bcard-web-enterprise sright-bcard-web-enterprise=registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-enterprise:debug-$version
pwd
cd ../mini-web
pwd
docker build -f Dockerfile -t registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-miniapp:debug_$version .
docker push registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-miniapp:debug_$version
#kubectl set image deployment/sright-bcard-web-miniapp sright-bcard-web-miniapp=registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-miniapp:debug-$version
pwd

#cd web-client/mini-web
#version=$(date +%Y%m%d%H%M)
#pwd
#docker build -f Dockerfile -t registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-miniapp:debug_$version .
#docker push registry.cn-hangzhou.aliyuncs.com/sright-bcard/sright-bcard-miniapp:debug_$version

#curl https://cs.console.aliyun.com/hook/trigger?token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbHVzdGVySWQiOiJjYzE5NDFjNzkwMmVkNDZmNDlhY2FiYzMwMjZjMzE5M2MiLCJpZCI6Ijk3ODgxIn0.e-xtM4dfxP1Od6EVbQ9HUTsymIy4NpzsZu7H1kgGolU6n0HGdpdOTxGssHSzbZ6rh_kt6aovjW9mpdwDc7oEf9LMwksa8sIAe-1m6XXyDMx6ZCY_XHS5Ky41C1KPWLEDdz8MQeHdKjUh7XDRrbYbxkSSnWdBj7Z1XLkPjR4kIj4
#curl https://cs.console.aliyun.com/hook/trigger?token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbHVzdGVySWQiOiJjYzE5NDFjNzkwMmVkNDZmNDlhY2FiYzMwMjZjMzE5M2MiLCJpZCI6Ijk3ODgwIn0.GPEr_3fWewqiNV4uD5LJU4-wJTmN557gfkGVdx8qDtrA3y9CTbkF2rClvD3XHf5mArgo0poWVHViuMDV1H-Ag1_gndE5OXqO2l1iwqqHOvKpcHEPe4nLisz74VJu1h0ba-6RFctcFO7KjdKxN7XE5l2kqxjbfyw7Ghh6rXoDMl8
#curl https://cs.console.aliyun.com/hook/trigger?token=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbHVzdGVySWQiOiJjYzE5NDFjNzkwMmVkNDZmNDlhY2FiYzMwMjZjMzE5M2MiLCJpZCI6Ijk3ODgwIn0.GPEr_3fWewqiNV4uD5LJU4-wJTmN557gfkGVdx8qDtrA3y9CTbkF2rClvD3XHf5mArgo0poWVHViuMDV1H-Ag1_gndE5OXqO2l1iwqqHOvKpcHEPe4nLisz74VJu1h0ba-6RFctcFO7KjdKxN7XE5l2kqxjbfyw7Ghh6rXoDMl8
